<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript" src="js/name.js"></script>
<script type="text/javascript">
    alert("憨憨赵本垚")
    document.write("hello")
    console.log("very good")
    var b = '憨憨'
    var c = '赵本垚'

    function x() {
        return b + c;
    }

    console.log(x())
    if (isNaN(b)) {
        console.log('不是一个数字');
    }

    function va(f) {//参数里面用f() 会调用该函数 会返回一个返回值  不添加括号代表者传入一个函数
        console.log("这是一个憨憨")
        f();//f为函数
    }

    console.log('a1')
    va(function () {
        console.log("名字叫做赵本垚")
    })
    console.log('a2')

    var json = {
        "name": "ss",
        "age": 20,
        "sex": "女",
        "study": function () {
            console.log(
                "day day study ,good good up"
            )
        }
    }
    console.log(json.name)
    json.study()
</script>
</body>
</html>